package com.hkd.SSM.impl;

import com.hkd.SSM.dao.UserDao;
import com.hkd.SSM.dao.UserService;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;

public class UserServiceImpl implements UserService{

    private UserDaoImpl userDao;

    public UserServiceImpl(UserDaoImpl userDao) {
        this.userDao = userDao;
    }

    public void save() {
        System.out.println("service save...");
    }

    public UserDaoImpl getUserDao() {
        return userDao;
    }

    public void setUserDao(UserDaoImpl userDao) {
        System.out.println("依赖注入中...");
        this.userDao = userDao;
    }
}
